import { BaseDomain } from "@/common/domain/BaseDomain"
import { Optional } from "@nestjs/common"
import { ApiProperty } from "@nestjs/swagger"
import { IsNotEmpty, IsNumber, IsString } from "class-validator"

export class updateDictTypeDto extends BaseDomain {
  @ApiProperty({description:"字典Id"})
  @IsNotEmpty({ message: "字典Id不能为空" })
  @IsNumber()
  dictId:number
  @ApiProperty({description:"字典名称"})
  @IsNotEmpty({ message: "字典名称不能为空" })
  @IsString()
  dictName: string
  @ApiProperty({description:"字典类型"})
  @IsNotEmpty({ message: "字典类型不能为空" })
  @IsString()
  dictType: string
  @ApiProperty({description:"字典状态（0停用，1正常）"})
  @Optional()
  status?: string = "1"
}